package com.web.webrecive.service.impl; /**
 * Created with IDEA
 * author:HanLiBin
 * Date:2018/2/28
 * Time:9:32
 * version 1.0
 */

import com.web.webrecive.dao.AuthUserDao;
import com.web.webrecive.pojo.AuthUser;
import com.web.webrecive.service.AuthUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthUserServiceImpl implements AuthUserService {
    @Autowired
    private AuthUserDao authUserDao;

    @Override
    public AuthUser create(AuthUser authUser) {
        return authUserDao.save(authUser);
    }

    @Override
    public AuthUser findById(Integer id) {
        return authUserDao.findOne(id);
    }

    @Override
    public List<AuthUser> findAll() {
        return authUserDao.findAll();
    }
}
